package com.ls.fw.office.itext.itext.handler;

import java.io.InputStream;
import java.io.OutputStream;

import com.lowagie.text.Document;
import com.lowagie.text.DocumentException;
import com.lowagie.text.Element;
import com.ls.fw.office.itext.itext.builder.ISignatureBuilder;
import com.ls.fw.office.itext.itext.builder.ParagraphBuilder;

public interface IHandler {

	public Document getDocument();
	
	public String getPath();
	
	public OutputStream getOut();
	 
	public InputStream getIn();
	
	public void open();
	
	public void close();
	
	public IHandler add(Element table ) throws DocumentException;

	public IHandler addSignatureField(ISignatureBuilder signatureBuilder);
	
	public void signWithAlias(String alias) throws Exception;
	
	public IHandler withAuthor(String author);

	public IHandler newPage() throws DocumentException;

	public IHandler addParagraph(ParagraphBuilder withMarker) throws DocumentException;
}
